trap: ERR: bad trap